package com.fenyin.samples.study.network;  

import java.net.InetAddress;
import java.net.UnknownHostException;
  
public class NetWork {
	
	public static void main(String[] args) throws UnknownHostException{
		InetAddress inet = InetAddress.getLocalHost();
		String localIp=inet.getHostAddress();
		System.out.println("localIp:"+localIp);
	}
}
